-
Notifications
You must be signed in to change notification settings - Fork 71
fix: schema validation in APIML components #4438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v3.x.x
Are you sure you want to change the base?
Conversation
Signed-off-by: Elena Kubantseva <elena.kubantseva@broadcom.com>
Signed-off-by: Elena Kubantseva <elena.kubantseva@broadcom.com>
Signed-off-by: Elena Kubantseva <elena.kubantseva@broadcom.com>
discovery-package/src/main/resources/schemas/discovery-config.json
Outdated
Show resolved
Hide resolved
caching-service-package/src/main/resources/schemas/caching-service-config.json
Show resolved
Hide resolved
caching-service-package/src/main/resources/schemas/caching-service-config.json
Outdated
Show resolved
Hide resolved
caching-service-package/src/main/resources/schemas/caching-service-config.json
Outdated
Show resolved
Hide resolved
api-catalog-package/src/main/resources/schemas/api-catalog-config.json
Outdated
Show resolved
Hide resolved
Signed-off-by: Elena Kubantseva <elena.kubantseva@broadcom.com>
Signed-off-by: Elena Kubantseva <elena.kubantseva@broadcom.com>
|
| }, | ||
| "sslDebug": { | ||
| "type": "string", | ||
| "description": "Configure attributes fro SSL config, see java property javax.net.debug." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "description": "Configure attributes fro SSL config, see java property javax.net.debug." | |
| "description": "Configure attributes for SSL config, see java property javax.net.debug." |
| }, | ||
| "sslDebug": { | ||
| "type": "string", | ||
| "description": "Configure attributes fro SSL config, see java property javax.net.debug." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "description": "Configure attributes fro SSL config, see java property javax.net.debug." | |
| "description": "Configure attributes for SSL config, see java property javax.net.debug." |
| "description": "How many connections should exist for single route?", | ||
| "default": 100 | ||
| }, | ||
| "maxTotalConnections": { | ||
| "type": "integer", | ||
| "description": "How many connections should exist in total?", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these descriptions (in general) shown in logs or other places? Should they go with review from doc squad? Wondering about the description with question marks
| "properties": { | ||
| "port": { | ||
| "$ref": "#/$defs/port", | ||
| "default": 7553 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "default": 7553 | |
| "default": 7554 |
| "properties": { | ||
| "port": { | ||
| "$ref": "#/$defs/port", | ||
| "default": 7552 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "default": 7552 | |
| "default": 7553 |
| "properties": { | ||
| "enabled": { | ||
| "type": "boolean", | ||
| "description": "To enable SSL/tls layer.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "description": "To enable SSL/tls layer.", | |
| "description": "To enable SSL/TLS layer.", |
| "internal": { | ||
| "type": "object", | ||
| "description": "Single-service specific configuration", | ||
| "properties": { | ||
| "discovery": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the property is named internal-discovery, though for now we pick it from the discovery component setting in first order
| "description": "To enable accepting client certificate from request header. It is used in domain APIML to accept forwarded client certificate by the caller.", | ||
| "default": false | ||
| }, | ||
| "certificatesUrl": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think one of these two is deprecated, I'm inclined to think it's the one in singular
| "provider": { | ||
| "type": "string", | ||
| "description": "Method of communication used by the SAF IDT provider implementation. REST is used if no value is provided.", | ||
| "enum": ["rest"], | ||
| "default": "rest" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this one should allow for custom values (thinking about extensions)



Description
This PR is fixes the schema validation in APIML components. See, the linked issue.
Linked to #3142
Type of change
Checklist:
For more details about how should the code look like read the Contributing guideline